<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>is_error_type&lt;E&gt; - Boost.Outcome documentation</title>
<link rel="stylesheet" href="../../css/boost.css" type="text/css">
<meta name="generator" content="Hugo 0.52 with Boostdoc theme">
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>

<link rel="icon" href="../../images/favicon.ico" type="image/ico"/>
<body><div class="spirit-nav">
<a accesskey="p" href="../../reference/traits/is_error_code_available.html"><img src="../../images/prev.png" alt="Prev"></a>
    <a accesskey="u" href="../../reference/traits.html"><img src="../../images/up.png" alt="Up"></a>
    <a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../../reference/traits/is_error_type_enum.html"><img src="../../images/next.png" alt="Next"></a></div><div id="content">
  <div class="titlepage"><div><div><h1 style="clear: both"><code>is_error_type&lt;E&gt;</code></h1></div></div></div>
  <p>A customisable integral constant type true for <code>E</code> types which are to receive
error throwing no-value policies. Special weakened implicit construction enable
is available for integral <code>T</code> types when combined with <code>E</code> types in this
whitelist &ndash; this permits <code>boost_result&lt;int, boost::system::errc::errc_t</code> to
retain its implicit constructors, despite the fact that <code>errc_t</code> as a C enum
has an implicit conversion to <code>int</code>.</p>

<p><em>Overridable</em>: By template specialisation into the <code>trait</code> namespace.</p>

<p><em>Default</em>: False. Specialisations to true exist for:</p>

<ul>
<li><p><code>&lt;boost/outcome/boost_result.hpp&gt;</code></p>

<ul>
<li><code>boost::system::error_code</code></li>
<li><code>boost::system::errc::errc_t</code></li>
<li><code>boost::exception_ptr</code></li>
</ul></li>

<li><p><code>&lt;boost/outcome/std_result.hpp&gt;</code></p>

<ul>
<li><code>std::error_code</code></li>
<li><code>std::errc</code></li>
<li><code>std::exception_ptr</code></li>
</ul></li>
</ul>

<p><em>Namespace</em>: <code>BOOST_OUTCOME_V2_NAMESPACE::trait</code></p>

<p><em>Header</em>: <code>&lt;boost/outcome/trait.hpp&gt;</code></p>


        </div><p><small>Last revised: October 11, 2019 at 17:03:05 &#43;0100</small></p>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../../reference/traits/is_error_code_available.html"><img src="../../images/prev.png" alt="Prev"></a>
    <a accesskey="u" href="../../reference/traits.html"><img src="../../images/up.png" alt="Up"></a>
    <a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../../reference/traits/is_error_type_enum.html"><img src="../../images/next.png" alt="Next"></a></div></body>
</html>
